﻿@model IEnumerable<Beeldbankmvc.Models.BEELDBANK_MEDIAOBJECT_FACETS_PROJECT>
@using System.Configuration
@using Beeldbankmvc.Code
@{
    ViewBag.Title = "Projecten overzicht";
    Layout = "~/Views/Shared/Layout.cshtml";
    Html.RenderAction("AdminMenu", "Miscellaneous");
}

<h2>@ViewBag.Title</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            Project
        </th>
        <th>
            Publicatie
        </th>

    </tr>

@foreach (var item in Model) {
    if (item.Publicatie.Equals(ConfigurationManager.AppSettings["publicationName"]))
    {
    <tr>
        <td>
            <a href="@Url.Action("Edit", "ProjectFacet", new { id = item.Id })"> <img alt="Project aanpassen" title="Project aanpassen" src="@AppHelper.getContent("~/Content/images/edit.gif")" /></a>
            <a href="@Url.Action("Delete", "ProjectFacet", new { id = item.Id })"> <img alt="Project verwijderen" title="Project verwijderen" src="@AppHelper.getContent("~/Content/images/delete.gif")" /></a>
        </td>
        <td>
            @item.Project
        </td>
        <td>
            @item.Publicatie
        </td>
    </tr>
    }
}

</table>

